package priv.pront.code.national.acwing.dp.bags;

import java.util.Scanner;

public class Acwing1023_买书 {

    static int[] dp;
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] arr = {0, 10, 20, 50, 100};
        dp = new int[n + 1];
        dp[0] = 1;
        for(int i = 1; i <= 4; i++){
            for(int j = arr[i]; j <= n; j++){
                dp[j] += dp[j - arr[i]];
            }
        }
        System.out.println(dp[n]);
    }
}
